<?php
class BitmapDimensions
{
	const kTransformCropFit            = 0x01;
	const kTransformCropFitWidth       = 0x02;
	const kTransformCropFitHeight      = 0x03;
	const kTransformDynamicFit         = 0x04;
	const kTransformStaticFit          = 0x05;
	const kTransformProportionalWidth  = 0x06;
	const kTransformProportionalHeight = 0x07;
	
	public $width;
	public $height;
	public $quality;
	public $transformationHint;
	
	public function __construct($width = null, $height = null, $transformationHint = BitmapDimensions::kTransformDynamicFit, $quality = 90)
	{
		$this->width      = $width  ? (int)  $width  : null;
		$this->height     = $height ? (int)  $height : null;
		$this->quality    = (int)  $quality;
		$this->transformationHint = $transformationHint;
	}
}
?>